﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DinnerParty
{
    class Dinner
    {
        public int numberOfPeople;
        public decimal costOfBeveragesPerPerson;
        public decimal costOfDecorations = 0;
        public const int costOfFoodPerPerson = 25;

        public void setHealthyOption(bool heajthyOption)
        {
            if (heajthyOption)
            {
                costOfBeveragesPerPerson = 5.00M;
            }
            else
            {
                costOfBeveragesPerPerson = 20.00M;
            }
           
        }
        public void calculateCostOfDecoration(bool fancy)
        {
            if (fancy)
            {
                costOfDecorations = (numberOfPeople * 15.00M) + 50M;
            }
            else
            {
                costOfDecorations = (numberOfPeople * 7.50M) + 30M;
            }
        }
        public decimal calculateCost(bool healthyOption)
        {
            decimal totalCost =  costOfDecorations +
            ((costOfBeveragesPerPerson + costOfFoodPerPerson)
            *( numberOfPeople));

          if (healthyOption) 
          {
           return totalCost * .95M;
          }
          else 
          {
           return totalCost;
          }
        }

    }
}
